const orderApproveData = {
  decisionType: {cancel: '9', pass: '11', refuse: '12', backToSales: '13', backToPrevious: '14', reconsiderPass: '16'},
  form: {
    appCode: null, // 公共审批数据
    type: null, // 审批radio
    passType: null,
    refuseType: null,
    cancelType: null,
    riskCode: null,
    riskName: null,
    backCode: null,
    backType: null,
    backReason: null,
    backReasonBackToPrevious: null,
    remarks: null,
    nextUserId: null,
    nextTrueName: null,
    carResult: null, // 签约审批数据 -- begin
    isCreditReport: null,
    authCh: null,
    pledModelId: null,
    isVipContract: null,
    modelIds: null,
    transferRegDate: null // 签约审批数据 -- end
  },
  formGps: {
    appCode: null,
    approveSuccess: null, // 是否审核通过(1通过，0不通过)
    gpsData: null, // GPS数据(gps型号,安装方式code,gpsNo,人工审核结果code,补充内容)，多条以“!”分隔
    originCarGps: null, // gps主键id，多条以“,”分隔
    remarks: null
  },
  rules: {
    // 当前审批表单验证规则
    current: {type: [{ required: true, message: '必选', trigger: 'blur' }]},
    // 取消审批表单验证规则
    cancel: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      cancelType: [{ required: true, message: '必选', trigger: 'blur' }],
      riskCode: [{ required: true, message: '必选', trigger: 'blur' }]
    },
    // 通过审批表单验证规则
    pass: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      passType: [{ required: true, message: '必选', trigger: 'blur' }],
      riskCode: [{ required: true, message: '必选', trigger: 'blur' }]
    },
    // 拒绝审批表单验证规则
    refuse: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      refuseType: [{ required: true, message: '必选', trigger: 'blur' }],
      riskCode: [{ required: true, message: '必选', trigger: 'blur' }]
    },
    // 退回审批表单验证规则
    backToSales: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      backCode: [{ required: true, message: '必选', trigger: 'blur' }],
      backReason: [{ required: true, message: '必填', trigger: 'blur' }]
    },
    // 退回上一步审批表单验证规则
    backToPrevious: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      backReasonBackToPrevious: [{ required: true, message: '必填' }]
    },
    // 签约审批&审批通过时的表单验证规则
    contractPass: {
      type: [{ required: true, message: '必选', trigger: 'blur' }],
      carResult: [{ required: true, message: '必选', trigger: 'blur' }],
      isCreditReport: [{ required: true, message: '必选', trigger: 'blur' }],
      authCh: [{ required: true, message: '必选', trigger: 'blur' }],
      pledModelId: [{ required: true, message: '必选', trigger: 'blur' }],
      isVipContract: [{ required: true, message: '必选', trigger: 'blur' }],
      modelIds: [{ required: true, message: '必选', trigger: 'blur' }]
    }
  }
}

export {
  orderApproveData
}
